<template>
  <div class="page-detail">
    <el-row class="crumbs">
      <crumbs />
    </el-row>
    <el-row class="details">
      <el-col :span="19">
        <detail :list="detailList" />
      </el-col>
      <el-col :span="5">
        <prcutre :list="detailList" />
      </el-col>
    </el-row>
    <el-row class="detail">
      <mapItem />
    </el-row>
  </div>
</template>

<script>
import api from '@/api/index';
import crumbs from '@/components/products/crumbs.vue';
import detail from '../components/detail/details.vue';
import prcutre from '../components/detail/prcutre.vue';
import mapItem from '@/components/products/mapItem.vue';

export default {
  data() {
    return {
      detailList: [],
    };
  },
  components: {
    crumbs,
    detail,
    prcutre,
    mapItem,
  },
  created() {
    api.getDetail().then((res) => {
      console.log(res);
      this.detailList = res.data.data;
    });
  },
};
</script>

<style lang="scss" scoped>
@import '@/assets/css/detail/index.scss';
@import '../assets/css/products/mapitem.scss';
.page-detail {
  border-radius: 5px;
  .crumbs {
    margin-top: 20px;
  }
  .details {
    width: 100%;
    height: 100%;
    background: #fff;
    margin-top: 20px;
    box-shadow: 8px 5px 1px 10px #fff;
    border-radius: 10px;
  }
}
</style>
